package com.stone.customer.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户投诉建议行表
 *
 * @author Mr_wenpan@163.com 2021-07-19 21:54:57
 */
@Data
@ApiModel("用户投诉建议行表")
@VersionAudit
@ModifyAudit
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "csgvip_complaints_entry")
public class ComplaintsEntry extends AuditDomain {

	public static final String FIELD_COMPLAINTS_ENTRY_ID = "complaintsEntryId";
	public static final String FIELD_COMPLAINTS_ID = "complaintsId";
	public static final String FIELD_TYPE = "type";
	public static final String FIELD_COMPLAINTS_CONTENT = "complaintsContent";
	public static final String FIELD_USER_ID = "userId";

	//
	// 业务方法(按public protected private顺序排列)
	// ------------------------------------------------------------------------------

	//
	// 数据库字段
	// ------------------------------------------------------------------------------

	@ApiModelProperty("表ID，主键")
	@Id
	@GeneratedValue
	private Long complaintsEntryId;
	@ApiModelProperty(value = "用户投诉建议表id，关联csgvip_complaints.complaints_id")
	private Long complaintsId;
	@ApiModelProperty(value = "类型,Q(用户投诉)/A(客服回复)")
	private String type;
	@ApiModelProperty(value = "投诉内容")
	private String complaintsContent;
	@ApiModelProperty(value = "客服id,关联iam_user.id")
	private Long userId;

	//
	// 非数据库字段
	// ------------------------------------------------------------------------------

}
